package com.smarthealthcare.ward.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.smarthealthcare.ward.mapper.WardMapper;
import com.smarthealthcare.ward.domain.Ward;
import com.smarthealthcare.ward.service.IWardService;

/**
 * wardService业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-23
 */
@Service
public class WardServiceImpl implements IWardService 
{
    @Autowired
    private WardMapper wardMapper;

    /**
     * 查询ward
     * 
     * @param id ward主键
     * @return ward
     */
    @Override
    public Ward selectWardById(Long id)
    {
        return wardMapper.selectWardById(id);
    }

    /**
     * 查询ward列表
     * 
     * @param ward ward
     * @return ward
     */
    @Override
    public List<Ward> selectWardList(Ward ward)
    {
        return wardMapper.selectWardList(ward);
    }

    /**
     * 新增ward
     * 
     * @param ward ward
     * @return 结果
     */
    @Override
    public int insertWard(Ward ward)
    {
        return wardMapper.insertWard(ward);
    }

    /**
     * 修改ward
     * 
     * @param ward ward
     * @return 结果
     */
    @Override
    public int updateWard(Ward ward)
    {
        return wardMapper.updateWard(ward);
    }

    /**
     * 批量删除ward
     * 
     * @param ids 需要删除的ward主键
     * @return 结果
     */
    @Override
    public int deleteWardByIds(Long[] ids)
    {
        return wardMapper.deleteWardByIds(ids);
    }

    /**
     * 删除ward信息
     * 
     * @param id ward主键
     * @return 结果
     */
    @Override
    public int deleteWardById(Long id)
    {
        return wardMapper.deleteWardById(id);
    }
}
